//待审核商品reducer
const examinereducer = (state = [], action) => {

    switch (action.type) {
        case 'GET_EXAMINE':
            console.log(action.examinelist)
            return action.examinelist
        case 'SUCCESS_GOODS':
            let arr
            arr = [...state].filter((item) => {
                return item.commodity_temp_id != action.index
            })
            return arr
        case 'FAIL_GOODS':
            let arr2
            arr2 = [...state].filter((item) => {
                return item.commodity_temp_id != action.index
            })
            return arr2
        default:
            return state;
    }
}

export default examinereducer;